<template>
  <div class="layout">
    <!-- 商家标题 -->
    <div class="title">
      <div class="title-ctx">
        <div class="title-ctx-left">
          <img
            class="title-ctx-left-avatar"
            :src="imgUrl + list.data.shop_logo"
          />
          <div class="title-ctx-left-title">
            {{ list.data.shop_name || "--" }}
          </div>
        </div>
        <div class="title-ctx-right">
          <img
            class="title-ctx-right-icon"
            src="@/assets/images/image(8).png"
          />
          <div class="title-ctx-right-title">
            VIP会员第{{ list.data.shop_level || "--" }}年
          </div>
        </div>
      </div>
    </div>
    <!-- 锚点导航 -->
    <div class="subtitle">
      <div class="subtitle-ctx">
        <div
          v-for="item in list.navList"
          :key="item.id"
          class="subtitle-ctx-item"
          :class="item.id == anchor.id ? 'active' : ''"
          @click="anchor.handleOneAnchor(item.id)"
        >
          {{ item.title }}
        </div>
      </div>
    </div>
    <div class="main">
      <div class="main-ctx">
        <!-- 企业简介 -->
        <div class="main-item" id="anchor2">
          <img class="main-item-image" src="@/assets/images/image(55).png" />
          <div class="main-item-body-new">
            <div class="main-item-body-newleft">
              <div class="main-item-body-newleft-top">
                <img
                  class="main-item-body-newleft-top-img"
                  :src="list.data.content_pic"
                />
              </div>
              <div class="main-item-body-newleft-down">
                <div
                  class="main-item-body-newleft-down-img"
                  :class="list.index == index ? 'border-active' : ''"
                  v-for="(item, index) in list.data.content_pic"
                  :key="index"
                  @click="list.handleChangeIndex(index)"
                >
                  <img class="main-item-body-newleft-down-img-bg" :src="item" />
                </div>
              </div>
            </div>
            <div class="main-item-body-middle">
              <div class="main-item-body-middle-title">
                {{ list.data.goods_name || "--" }}
              </div>
              <div class="main-item-body-middle-item">
                销售渠道：{{ list.data.qudao || "--" }}
              </div>
              <div class="main-item-body-middle-item">
                招商形式：{{ list.data.zhaoshang || "--" }}
              </div>
              <div class="main-item-body-middle-item">
                招商区域：{{ list.data.quyu || "--" }}
              </div>
              <div class="main-item-body-middle-item">
                生产厂家：{{ list.data.shop_name || "--" }}
              </div>
              <div class="main-item-body-middle-item">
                批准文号：{{ list.data.pizhun || "--" }}
              </div>
            </div>
            <div class="main-item-body-left">
              <img
                class="main-item-body-left-avatar"
                :src="imgUrl + list.data.shop_logo"
              />
              <div class="main-item-body-left-title">
                {{ list.data.shop_name || "--" }}
              </div>
              <div class="main-item-body-left-tag">
                <!-- {{ filters.qualificationsFilter(list.data.zizhi) }} -->
                <!-- {{ list.data.zizhi.length }} -->
                公司资质已认证
              </div>
              <div class="main-item-body-left-column">
                联系人：{{ list.data.lianxiren || "--" }}
              </div>
              <div class="main-item-body-left-column">
                联系电话：{{ list.data.shop_phone || "--" }}
              </div>
              <div class="main-item-body-left-column">
                所在地：{{ list.data.shop_address || "--" }}
              </div>
              <div class="main-item-body-left-column">
                主营项目：{{ list.data.zhuying || "--" }}
              </div>
              <div
                class="main-item-body-left-confirm"
                @click="$router.push('/agent')"
              >
                我要代理
              </div>
            </div>
          </div>
        </div>
        <!-- 产品详情标题 -->
        <div class="main-title">产品详情</div>
        <!-- 产品说明 -->
        <div class="main-subtitle">产品说明</div>
        <div class="main-new-one" id="anchor3">
          <div class="main-newone-column">
            <div class="main-newone-column-title">【规&emsp;&emsp;格】：</div>
            <div class="main-newone-column-value">1200mgx60</div>
          </div>
          <div class="main-newone-column">
            <div class="main-newone-column-title">【成&emsp;&emsp;分】：</div>
            <div class="main-newone-column-value">
              每片含西芹粉150mg、玉米须120mg，百里香50mg
            </div>
          </div>
          <div class="main-newone-column">
            <div class="main-newone-column-title">【包&emsp;&emsp;装】：</div>
            <div class="main-newone-column-value">瓶</div>
          </div>
          <div class="main-newone-column">
            <div class="main-newone-column-title">【生产厂家】：</div>
            <div class="main-newone-column-value">
              深圳市加州阳光生物科技有限公司全国总经销
            </div>
          </div>
        </div>
        <!-- 功能介绍 -->
        <div class="main-subtitle">功能介绍</div>
        <div class="main-new-two">
          主要功能的介绍主要功能的介绍主要功能的介绍主要功能的介绍主要功能的介绍主要功能的介绍主要功能的介绍主要功能的介绍主要功能的介绍主要功能的介绍主要功能的介绍主要功能的介绍主要功能的介绍主要功能的介绍主要功能的介绍主要功能的介绍主要功能的介绍主要功能的介绍主要功能的介绍主要功能的介绍主要功能的介绍主要功能的介绍主要功能的介绍主要功能的介绍主要功能的介绍主要功能的介绍主要功能的介绍主要功能的介绍
        </div>
        <!-- 产品资质 -->
        <div class="main-subtitle">产品资质</div>
        <div class="main-item" id="anchor4">
          <div class="main-item-bodyheight">
            <div
              v-for="(item, index) in list.data.zizhi"
              :key="index"
              class="main-item-body-prod"
            >
              <div class="main-item-body-prod-top">
                <img
                  class="main-item-body-prod-top-bigimage"
                  :src="imgUrl + item"
                />
              </div>
              <div class="main-item-body-prod-down">
                <div class="main-item-body-prod-down-text">食品经营许可证</div>
              </div>
            </div>
          </div>
        </div>
        <!-- 联系方式 -->
        <div class="main-subtitle">联系方式</div>
        <div class="main-item" id="anchor5">
          <div class="main-item-bodyheight">
            <div class="main-item-body-contact">
              <div class="main-item-body-contact-title">
                {{ list.data.shop_name || "--" }}
              </div>
              <div class="main-item-body-contact-column">
                联系人：{{ list.data.lianxiren || "--" }}
              </div>
              <div class="main-item-body-contact-column">
                招商热线：{{ list.data.shop_phone || "--" }}
              </div>
              <div class="main-item-body-contact-column">
                联系手机：{{ list.data.lianxi || "--" }}
              </div>
              <div class="main-item-body-contact-column">
                微信号码：{{ list.data.shop_wx || "--" }}
              </div>
              <div class="main-item-body-contact-column">
                公司地址：{{ list.data.shop_address || "--" }}
              </div>
            </div>
          </div>
        </div>
        <!-- 温馨提示 -->
        <div class="main-subtitle">温馨提示</div>
        <div class="main-new-three">
          {{ list.data.tishi || "--" }}
        </div>
        <!-- 留言资讯 -->
        <div class="main-subtitle">留言资讯</div>
        <div class="main-item" id="anchor6">
          <div class="main-item-bodyheight">
            <div class="main-item-body-contact">
              <!-- 姓名 -->
              <div class="index-leave-inputgroup">
                <img
                  class="index-leave-inputgroup-icon"
                  src="@/assets/images/image(17).png"
                />
                <el-input
                  placeholder="请输入您的姓名"
                  v-model="field.sendFormData.name"
                ></el-input>
              </div>
              <!-- 邮箱 -->
              <div class="index-leave-inputgroup">
                <img
                  class="index-leave-inputgroup-icon"
                  src="@/assets/images/image(11).png"
                />
                <el-input
                  placeholder="请输入您的邮箱"
                  v-model="field.sendFormData.email"
                ></el-input>
              </div>
              <!-- 联系方式 -->
              <div class="index-leave-inputgroup">
                <img
                  class="index-leave-inputgroup-icon"
                  src="@/assets/images/image(9).png"
                />
                <el-input
                  placeholder="请输入您的联系方式"
                  v-model="field.sendFormData.phone"
                ></el-input>
              </div>
              <!-- 咨询内容 -->
              <div class="index-leave-textgroup">
                <img
                  class="index-leave-textgroup-icon"
                  src="@/assets/images/image(10).png"
                />
                <el-input
                  type="textarea"
                  placeholder="请输入您的咨询内容"
                  rows="8"
                  resize="none"
                  size="medium"
                  v-model="field.sendFormData.content"
                ></el-input>
              </div>
              <div class="index-leave-radiogroup">
                <el-radio-group v-model="field.sendFormData.content">
                  <el-radio :label="1">只咨询此公司，其他勿扰！</el-radio>
                  <el-radio :label="2">望同类厂家联系，对比选择！</el-radio>
                </el-radio-group>
              </div>
              <!-- 立即提交 -->
              <div
                class="index-leave-confirm"
                @click="field.handleSubmitMessage"
              >
                立即提交
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="footer">
      <Footer />
    </div>
  </div>
</template>

<script setup>
import { ToastBottom, setObj, getObj } from "@/utils/index";
import {
  onMounted,
  computed,
  ref,
  reactive,
  toRefs,
  inject,
  defineProps,
} from "vue";
import { useRoute, useRouter } from "vue-router";
import Footer from "@/layout/footer/index";
import Pagination from "@/components/pagination/index";
import { ElMessage } from "element-plus";

// 获取props
// const props = defineProps({
//   id: [String, Number],
// });
//获取路由
const $_route = useRoute();
const $_router = useRouter();
//获取接口
const $_api = inject("$api");
//获取接口
const imgUrl = computed(() => {
  return process.env.VUE_APP_BASE_API;
});

onMounted(() => {
  console.log($_route.query.id);
  //获取商品参数
  api.getGoodsInfo($_route.query.id);
});
//获取接口
const api = reactive({
  //获取商品参数
  getGoodsInfo: async goods_id => {
    const results = await $_api.goodsInfo({ goods_id });
    if (results && results.status > 0) {
      console.log(results.data, "goodsInfo");
      list.data = results.data;
    }
  },
  //留言咨询
  sendMessageShop: async () => {
    const results = await $_api.messageShop({
      shop_id: list.data.shop_id,
      goods_id: $_route.query.id,
      ...field.sendFormData,
    });
    if (results && results.status > 0) {
      ElMessage.success(results.info);
    }
    field.cleanField();
  },
});
const list = reactive({
  //nav
  navList: [
    { id: 1, title: "企业首页" },
    { id: 2, title: "企业简介" },
    { id: 3, title: "招商产品" },
    { id: 4, title: "企业资质" },
    { id: 5, title: "联系方式" },
    { id: 6, title: "留言咨询" },
  ],
  //data
  data: {},
  index: 0,
  handleChangeIndex: index => {
    list.index = index;
  },
});
// 表单
const field = reactive({
  sendFormData: {
    name: "",
    email: "",
    phone: "",
    content: "",
    radio: "",
  },
  formData: {
    page: 1,
    page_size: 16,
  },
  handleChangePage: page => {
    console.log(page, "get");
    field.formData.page = page;
  },
  handleSubmitMessage: () => {
    api.sendMessageShop();
  },
  //清空表单

  cleanField: () => {
    field.sendFormData.name = "";
    field.sendFormData.email = "";
    field.sendFormData.phone = "";
    field.sendFormData.content = "";
    field.sendFormData.radio = "";
    api.getGoodsInfo();
  },
});

// 过滤器
const filters = reactive({
  qualificationsFilter: list => {
    // switch (Number(status)) {
    //   case 1:
    //     return "公司资质已认证";
    //   case 2:
    //     return "公司资质未认证";
    //   default:
    //     return "公司资质未认证";
    // }
    if (list.length != 0) {
      return "公司资质已认证";
    } else {
      return "公司资质未认证";
    }
  },
  imgFilter: index => {
    return list.data.content_pic[index];
  },
});
// 锚点
const anchor = reactive({
  id: 1,
  handleOneAnchor: id => {
    anchor.id = id;
    document.querySelector(`#anchor${id}`).scrollIntoView({
      behavior: "smooth",
      block: "center",
      inline: "nearest",
    });
  },
});
</script>
<style lang="scss" scoped>
.layout {
  @include flex(flex-start, center);
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  background: #fff;
  overflow-x: hidden;
}
.title {
  width: 100%;
  flex-shrink: 0;
}
.title-ctx {
  @include flex(space-between, center);
  margin: 0 auto;
  width: 1200px;
  height: 144px;
}
.title-ctx-left {
  @include flex(flex-start, center);
}
.title-ctx-left-avatar {
  margin-right: 10px;
  width: 98px;
  height: 98px;
  background: #ffffff;
  box-shadow: 0px 2px 4px 0px rgba(203, 203, 203, 0.5);
  border: 1px solid #e4e4e4;
  border-radius: 50%;
}
.title-ctx-right {
  visibility: hidden;
  @include flex(flex-end, center);
  margin-top: 60px;
}
.title-ctx-right-icon {
  width: 46px;
  height: 52px;
}
.title-ctx-right-title {
  width: 150px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  background: #f5a623;
  border-radius: 0px 100px 100px 0px;
  font-size: 16px;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #ffffff;
}
.title-ctx-left-title {
  font-size: 30px;
  font-family: PingFangSC-Semibold, PingFang SC;
  font-weight: 600;
  color: #333333;
  line-height: 42px;
}
.subtitle {
  width: 100%;
  height: 60px;
  background: #e1e1e1;
  flex-shrink: 0;
}
.subtitle-ctx {
  @include flex(space-between, center);
  margin: 0 auto;
  width: 1200px;
  height: 100%;
}
.subtitle-ctx-item {
  flex-grow: 1;
  text-align: center;
  font-size: 20px;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #333333;
  line-height: 60px;
  cursor: pointer;
}
.subtitle-ctx-item:hover {
  background: #f5a623;
  color: #fff;
}
.active {
  background: #f5a623;
  color: #fff;
}
.main {
  margin-top: 10px;
  width: 100%;
  flex-grow: 1;
}
.main-ctx {
  @include flex(flex-start, center);
  flex-direction: column;
  margin: 0 auto;
  width: 1200px;
  height: 100%;
}
.main-item {
  @include flex(flex-start, center);
  flex-direction: column;
  margin-bottom: 10px;
  width: 100%;
}
.main-item-image {
  margin-bottom: 12px;
  width: 100%;
  height: 114px;
}
.main-item-body {
  @include flex(flex-start, center);
  width: 100%;
  height: 400px;
}
.main-item-body-new {
  @include flex(flex-start, flex-start);
  width: 100%;
}
.main-item-bodyheight {
  @include flex(flex-start, center);
  width: 100%;
}
.main-item-body-newleft {
  @include flex(flex-start, center);
  flex-shrink: 0;
  flex-direction: column;
  width: 377px;
}
.main-item-body-newleft-top {
  @include flex(center, center);
  width: 100%;
  height: 377px;
  background: #f6f6f6;

  .main-item-body-newleft-top-img {
    width: 358px;
    height: 244px;
  }
}

.main-item-body-newleft-down {
  @include flex(space-between, center);
  margin-top: 3px;
  width: 100%;
  .main-item-body-newleft-down-img {
    @include flex(center, center);
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    box-sizing: border-box;
    background: #f6f6f6;
    &:hover {
      border: 1px solid #f5a623;
    }

    .main-item-body-newleft-down-img-bg {
      width: 69px;
      height: 49px;
    }
  }
}

.main-item-body-middle {
  @include flex(flex-start, center);
  flex-direction: column;
  padding: 13px 20px;
  box-sizing: border-box;
  flex-grow: 1;

  .main-item-body-middle-title {
    margin-bottom: 10px;
    width: 100%;
    text-align: left;
    font-size: 20px;
    font-family: PingFangSC-Semibold, PingFang SC;
    font-weight: 600;
    color: #2f2f2f;
    line-height: 28px;
  }

  .main-item-body-middle-item {
    width: 100%;
    text-align: left;
    font-size: 18px;
    font-family: PingFangSC-Regular, PingFang SC;
    font-weight: 400;
    color: #2f2f2f;
    line-height: 30px;
  }
}
.main-item-body-left {
  @include flex(space-around, center);
  flex-direction: column;
  flex-shrink: 0;
  padding: 0 20px;
  width: 377px;
  height: 100%;
  box-sizing: border-box;
  background: #ffedcf;
}
.main-item-body-left-avatar {
  width: 98px;
  height: 98px;
  border-radius: 50%;
}
.main-item-body-left-title {
  text-align: center;
  font-size: 16px;
  font-family: PingFangSC-Semibold, PingFang SC;
  font-weight: 600;
  color: #333333;
  line-height: 22px;
}
.main-item-body-left-tag {
  width: 144px;
  height: 31px;
  line-height: 31px;
  text-align: center;
  background: #f5a623;
  border-radius: 4px;
  font-size: 16px;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #ffffff;
}
.main-item-body-left-column {
  @include text_cut_line;
  width: 100%;
  text-align: left;
  font-size: 16px;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #333333;
  line-height: 22px;
}
.main-item-body-left-confirm {
  width: 100%;
  height: 42px;
  line-height: 42px;
  text-align: center;
  background: #f5a623;
  border-radius: 6px;
  font-size: 16px;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #ffffff;
  cursor: pointer;
}
.main-item-body-prod {
  @include flex(flex-start, center);
  flex-direction: column;
  margin-right: 10px;
  flex-grow: 1;
}
.main-item-body-prod:nth-child(4n) {
  margin-right: 0;
}
.main-item-body-prod-top {
  @include flex(center, center);
  position: relative;
  margin-bottom: 6px;
  width: 100%;
  height: 191px;
  z-index: 9;
  background: #f6f6f6;
  box-shadow: 0px 2px 8px 0px rgba(202, 202, 202, 0.5);
  border-radius: 6px;
}
.main-item-body-prod-top-image {
  width: 233px;
  height: 159px;
}
.main-item-body-prod-top-bigimage {
  width: 248px;
  height: 166px;
}
.main-item-body-prod-top-tags {
  @include flex(flex-start, center);
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 99;
}
.main-item-body-prod-top-tag {
  margin-bottom: 10px;
  width: 50px;
  height: 26px;
}
.main-item-body-prod-down {
  @include flex(flex-start, center);
  flex-direction: column;
  margin-bottom: 6px;
  width: 100%;
}
.main-item-body-prod-down-text {
  @include text_cut_line;
  margin-top: 5px;
  width: 100%;
  text-align: left;
  font-size: 18px;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #2f2f2f;
  line-height: 25px;
}
.main-item-body-contact {
  @include flex(flex-start, center);
  flex-direction: column;
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
  background: #f8f8f8;
}
.main-item-body-contact-title {
  width: 100%;
  text-align: left;
  font-size: 20px;
  font-family: PingFangSC-Semibold, PingFang SC;
  font-weight: 600;
  color: #2f2f2f;
  line-height: 28px;
}
.main-item-body-contact-column {
  margin-top: 10px;
  width: 100%;
  text-align: left;
  font-size: 20px;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #2f2f2f;
  line-height: 28px;
}

.index-leave-inputgroup {
  @include flex(flex-start, center);
  margin-bottom: 10px;
  width: 533px;
  height: 40px;
  background: #ffffff;
  opacity: 0.79;
  // background: rgba(255, 255, 255, 0.8);
}
.index-leave-inputgroup-icon {
  margin: 0 10px;
  width: 16px;
  height: 19px;
}
.index-leave-textgroup {
  @include flex(flex-start, flex-start);
  padding: 10px;
  box-sizing: border-box;
  width: 533px;
  height: 173px;
  background: #ffffff;
  opacity: 0.79;
  overflow: hidden;
}
.index-leave-textgroup-icon {
  flex-shrink: 0;
  margin-right: 10px;
  width: 16px;
  height: 19px;
}

.index-leave-tag-line {
  position: relative;
  margin-top: -10px;
  width: 104px;
  height: 9px;
  background: #df7935;
  z-index: -1;
}
.index-leave-confirm {
  width: 233px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  background: #df7935;
  font-size: 16px;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #ffffff;
  cursor: pointer;
}
.index-leave-radiogroup {
  width: 533px;
}
.main-item-bodycolumn {
  @include flex(flex-start, center);
  flex-direction: column;
  width: 100%;
}
.index-industry-list {
  @include flex(flex-start, flex-start);
  flex-direction: column;
  flex-wrap: wrap;
  width: 100%;
  height: 400px;
}
.index-industry-item {
  @include flex(flex-start, center);
  margin-bottom: 25px;
  flex-grow: 0;
  width: 50%;
}
.index-industry-item:nth-child(8n) {
  //   @include flex(flex-start, center);
  margin-bottom: 0px;
  //   width: 50%;
}
.index-industry-item:nth-child(-n + 8) {
  margin-right: 10px;
}
.index-industry-item:nth-child(n + 9) {
  margin-left: 10px;
}
.index-industry-item-icon {
  flex-shrink: 0;
  margin-right: 20px;
  width: 34px;
  height: 25px;
}
.index-industry-item-mid {
  @include flex(flex-start, center);
  @include text_cut_line;
  flex-grow: 1;
  margin-right: 6px;
  //   width: 100%;
}
.index-industry-item-title {
  //   flex-grow: 1;
  text-align: left;
  font-size: 18px;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #2f2f2f;
  line-height: 25px;
}
.index-industry-item-tag {
  flex-shrink: 0;
  margin-left: 6px;
  width: 20px;
  height: 20px;
}
.index-industry-item-time {
  flex-shrink: 0;
  font-size: 18px;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #2f2f2f;
  line-height: 25px;
}
.index-industry-pagination {
  width: 100%;
}
.main-item-body-right {
  flex-grow: 1;
  height: 100%;
}
.footer {
  width: 100%;
  flex-shrink: 0;
  background: #f6f6f6;
}
.border-active {
  border: 1px solid #f5a623;
}
.main-title {
  margin: 20px 0 10px;
  width: 100%;
  height: 50px;
  line-height: 50px;
  text-align: center;
  background: #f0f0f0;
  font-size: 18px;
  font-family: PingFangSC-Semibold, PingFang SC;
  font-weight: 600;
  color: #2f2f2f;
}
.main-subtitle {
  margin: 10px 0;
  padding-left: 5px;
  box-sizing: border-box;
  width: 100%;
  text-align: left;
  height: 25px;
  font-size: 18px;
  font-family: PingFangSC-Semibold, PingFang SC;
  font-weight: 600;
  color: #2f2f2f;
  line-height: 25px;
  border-left: 5px solid #f5a623;
}
.main-new-one {
  @include flex(flex-start, center);
  flex-direction: column;
  width: 100%;

  .main-newone-column {
    @include flex(flex-start, center);
    width: 100%;
    height: 25px;

    .main-newone-column-title {
      flex-shrink: 0;
      font-size: 18px;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: #2f2f2f;
      line-height: 25px;
    }

    .main-newone-column-value {
      @include text_cut_line;
      flex-grow: 1;
      text-align: left;
      font-size: 18px;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: #2f2f2f;
      line-height: 25px;
    }
  }
}

.main-new-two {
  width: 100%;
  text-align: left;
  font-size: 18px;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #2f2f2f;
  line-height: 30px;
}
.main-new-three {
  padding: 20px;
  box-sizing: border-box;
  width: 100%;
  background: #f8f8f8;
  text-align: left;
  font-size: 20px;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #2f2f2f;
  line-height: 28px;
}
</style>
<style lang="scss" scoped>
.index-leave-inputgroup :deep(.el-input__inner) {
  border-radius: 0;
  border: none;
  padding: 0;
  &::placeholder {
    font-size: 16px;
    font-family: PingFangSC-Regular, PingFang SC;
    font-weight: 400;
    color: #2f2f2f;
    line-height: 22px;
  }
}
.index-leave-textgroup :deep(.el-textarea__inner) {
  border-radius: 0;
  border: none;
  padding: 0;
  // color: #606266;

  &::placeholder {
    font-size: 16px;
    font-family: PingFangSC-Regular, PingFang SC;
    font-weight: 400;
    color: #2f2f2f;
    line-height: 22px;
  }
}
.index-leave-radiogroup :deep(.el-radio) {
  width: 50%;
}
</style>
